package cn.ray.springframework.beans.factory;

import cn.ray.springframework.beans.BeansException;
import cn.ray.springframework.beans.factory.config.BeanDefinition;

import java.beans.Beans;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

//主要是注册bean，获取bean对象操作
public interface BeanFactory {
    Object getBean(String name) throws BeansException;

    //新增接口,用于处理带构造参数的Bean对象创建
    Object getBean(String name,Object... args) throws BeansException;

    <T> T getBean(String name,Class<T>requiredType) throws BeansException;
}
